import { consts } from "../pkg-00-const";
import { pickup, write, writeTemplate } from "./tool/scanutil";
const fileMapping = /index\.tsx?/;
const pickRule = ["export", "class", "?", "extends"];
export const scanner = {
  scan() {
    const pickups = pickup(consts.routerFolderName, fileMapping, pickRule).map(p => ({ ...p, route: p.fixPath || "/" }));
    writeTemplate(`template_${injectModule}.ts`, pickups, `virtual_${injectModule}.ts`);
  }
};

const injectModule = "injection03pageIOC";
